import type { AddressParams, AddressItem } from '@/types/address'
import { http } from '@/utils/http'

import type { PageData } from '@/types/global'
import type {
  CategoryGoodItem,
  IBannerListItem,
  IBannerParams,
  ISearchPageParams,
  TagListItem,
} from '@/types/category'
/**
 * 添加收货地址
 * @param data 请求参数
 */
export const collectPageAPI = (data: any) => {
  return http<PageData<CategoryGoodItem[]>>({
    method: 'POST',
    url: '/sys/app/collect/page',
    data,
  })
}

export const collectCountAPI = () => {
  return http<number>({
    method: 'GET',
    url: '/sys/app/collect/count',
    data: {},
  })
}
